﻿using Core;
using ET;

[Event]
public class TouchBeginItemSlotEvent : AEvent<TouchBeginItemSlot>
{
    protected override async ETTask Run(TouchBeginItemSlot data)
    {
        var window = await World.GetComponent<FGUIComponent>().ShowWindow<WidgetWindow>();
        window.describeWidget.ShowItemInfo(data.slot.itemId, data.component);
    }
}
